package com.noreply.springannotation.config;

import com.noreply.springannotation.dao.BookDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author noreply
 * @description
 */
@Configuration
@ComponentScan({"com.noreply.springannotation.dao", "com.noreply.springannotation.service"})
public class ConfigAutowired {
    @Bean("bookDao1")
    public BookDao bookDao(){
        return new BookDao("bean");
    }
}
